package com.bdqn.demo;

import com.bdqn.demo.service.DemoService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

/**
 * DemoServiceTester
 *
 * @author f
 * @since 2021/11/20
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class DemoServiceTester {
    @Resource
    private DemoService demoService;

    @Test
    public void testSayHello(){
        String msg = demoService.sayHello();
        System.out.println("msg: " + msg);
    }
}
